package com.yu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.common.utils.PageUtils;
import com.yu.gulimall.product.entity.AttrEntity;
import com.yu.gulimall.product.vo.AttrInfoVo;
import com.yu.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yu
 * @email yu@gmail.com
 * @date 2024-02-27 14:44:07
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils getBaseAttrWithCatelogName(Map<String, Object> params, Long catelogId, String type);

    void saveDetail(AttrVo attr);

    AttrInfoVo getInfoWithAttrId(Long attrId);

    void updateAttr(AttrVo attr);

    PageUtils getSaleListInfoBycateLogId(Long catelogId,Map<String, Object> params);

    /**
     * 查询可被检索的规格信息
     * @param allAttrIds
     * @return
     */
    List<Long> seletAttrIds(List<Long> allAttrIds);
}

